﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using System.Web.Security;

namespace House.DTO
{
    public class MyFormsPrincipal<T> : IPrincipal where T : class, new()
    {
        public IIdentity Identity { get; private set; }

        public T UserData { get; set; }

        public MyFormsPrincipal(FormsAuthenticationTicket ticket, T userData)
        {
            this.Identity = new FormsIdentity(ticket);
            this.UserData = userData;
        }

        public bool IsInRole(string role)
        {
            throw new NotImplementedException();
        }


    }
}
